import java.util.Scanner;

public class Date {
    public int year;
    public int month;
    public int day;
    //无参数构造方法
    /*public Date(){
        this.year=2025;
        this.month=4;
        this.day=25;
    }*/
    //含参数构造方法
    public Date(int year, int month, int day){
        this.year=year;
        this.month=month;
        this.day=day;
    }
    public String toString(){
        System.out.println("你已成功打印出对象");
        return year+"-"+month+"-"+day;
    }
    public static void main(String[] args) {
        Date d = new Date(2025,4,25);
        System.out.println(d);
    }
}
